package com.ybkj.chat.module.mine.activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.TextView;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author yyj
 * @create 2019-02-20 11:13
 * @Describe 礼物收入
 */
public class GiftIncomeActivity extends BaseMvpActivity {
    @BindView(R.id.tv_rule)
    TextView tvRule;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("礼物收益");
        setRightText("提现明细");
        setRightTextColor(R.color.color_dfd);
        setRightTextVisible(true);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_gift_income;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        tvRule.setText(Html.fromHtml("点击提现即默认同意<font color=\"#638DFD\">《圈子礼物服务条款》</font>"));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.head_right_text,R.id.tv_withdraw})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.head_right_text:
                startActivity(new Intent(this,WithdrawDetailActivity.class));
                break;
            case R.id.tv_withdraw:
                startActivity(new Intent(this, WithdrawActivity.class));
                break;
        }
    }
}
